package util

import (

	"encoding/json"
	"gitee.com/hbjava_021/go-common/logger"
)

func ToJsonString(body interface{}) string {
	str, err := json.Marshal(body)
	if err != nil {
		logger.Info.Printf("ToJsonString失败:%s", err)
	}
	return string(str)
}
func parseInterface(body string, instance interface{}) {
	json.Unmarshal([]byte(body), &instance)
}
